<?php

/**
 * Description of AuthAdapter
 *
 * @author hikui
 */
class AuthAdapter {
   private $db_host;
   private $table_name;
   private $username_field;
   private $password_field;
   private $encryption_mode;
   private $username;
   private $password;
   /**
    * This construct provides user auth database infomation
    * @param string $db_host
    * @param string $table_name
    * @param string $username_field
    * @param string $password_field
    * @param string $encryption_mode 
    */
   public function __construct($db_host,$table_name,$username_field,$password_field,$encryption_mode=null)
   {
       $this->$db_host=$db_host;
       $this->username_field=$username_field;
       $this->password_field=$password_field;
       $this->encryption_mode=$encryption_mode;
       $this->table_name=$table_name;
   }

   public function GetDbHost()
   {
       return $this->$db_host;
   }

   public function GetUsernameField()
   {
       return $this->username_field;
   }

   public function GetPasswordField()
   {
       return $this->password_field;
   }

   public function GetEncryptionMode()
   {
       return $this->encryption_mode;
   }

   public function GetTableName()
   {
       return $this->table_name;
   }

   public function SetUserName($username)
   {
       $this->username=$username;
   }

   public function SetPassword($password)
   {
       $this->password=$password;
   }

   public function GetUserName()
   {
       return $this->username;
   }

   public function GetPassword()
   {
       return $this->password;
   }
}
?>
